Skip to main content

text

Type

keyword

Summary

Used with the sort and sort container commands to sort normally, character by character.

Syntax

text

Description

Use the text keyword to improve the clarity of your code. For example, if a handler contains several sort commands and some are numeric, you can use the text keyword explicitly to point up the fact that there are both alphabetic and numeric sorts.

Since text is the default sort order, you never actually need to use the text keyword; if you leave it out, the sort is performed alphabetically anyway.

Examples

sort cards descending text by field "State"
sort lines of the target text by word 2 of each

command: sort, sort container

glossary: keyword, handler, command, sort

keyword: dateTime, character, numeric

Compatibility and Support

Introduced

LiveCode 1.0

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?